package per.com.service.impl.studentmanage;


import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Qualifier;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;
import per.com.bean.studentmanage.StudentBean;
import per.com.dao.studentmanage.StudentmanageDao;

import java.util.List;

@Service("StudentServiceId")
public class StudentmanageService {
    @Autowired
    @Qualifier("StudentDaoId")
    private StudentmanageDao studentmanageDao;
    public void insertstudent(StudentBean studentBean){
        studentmanageDao.insertstudent(studentBean);
    }
    public List<StudentBean> GetStudent(){
        return studentmanageDao.GetStudent();
    }
    public StudentBean selectbyid(String studentid){
        StudentBean studentBean = studentmanageDao.selectbyid(studentid);
        return studentBean;
    }
    public StudentBean selectbyname(String name){
        StudentBean studentBean = studentmanageDao.selectbyname(name);
        return studentBean;
    }
}
